#! /bin/bash
#Script used to test grades

#bash execution commands:
pass="Pass"
fail="Fail"

p1=0
f1=0

echo "Test Case 1: Testing 23/23"
java -jar Grades.jar 23 23

echo "================"
echo "test report statistics"
echo "================"

result='./Grades'
for i in 1 2 3 4 5
do
if [[ $(echo "$result") = "Component Fail" ]]; then 
echo $i  
  echo FAILED = $p1
else
echo $i
  echo PASSED = $f1
fi
done


